﻿define(["service/service", "service/httpService"], function (service) {
    service.factory("helpService", function (httpService) {
        var methods = {
            gets: function (params) {
                return httpService.get("/admin/article/gets", params);
            },
            get: function (params) {
                return httpService.get("/admin/article/get", params);
            },
            getdetails: function (params) {
                return httpService.get("/admin/article/getdetails", params);
            },
            "update": function (params) {
                return httpService.upload("/admin/article/update", params);
            },
            "add": function (params) {
                return httpService.upload("/admin/article/save", params);
            },
            delete: function (id) {
                return httpService.delete("/admin/article/delete/" + id);
            },
            quality: function (id) {
                return httpService.get("/admin/article/quality/" + id);
            },
            top: function (id) {
                return httpService.get("/admin/article/top/" + id);
            },
            deleteitem: function (id) {
                return httpService.delete("/admin/article/deleteitem/" + id);
            },
            "reply": function (params) {
                return httpService.upload("/admin/article/reply", params);
            }
        }
        return methods;
    });
});